def __repr__(self):
    return f"{self.__class__.__name__}(wheel={self.wheel}, type={self.type})"


# 定义类
A = type("A", (), {"wheel": 4})
B = type("B", (A, ), {"type": 1})
C = type("C", (A, ), {"type": 2})


class D:
    pass


# 实例化
b1 = B()
print(b1, type(b1))

d1 = D()
print(d1, type(d1))
